package com.tandewuyanzu.unicorn;

public class Unicorn {
    private long id;
    private String name;
    private String color;
    private String shout;
    private int legnum;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getShout() {
        return shout;
    }

    public void setShout(String shout) {
        this.shout = shout;
    }

    public int getLegnum() {
        return legnum;
    }

    public void setLegnum(int legnum) {
        this.legnum = legnum;
    }

    @java.lang.Override
    public java.lang.String toString() {
        return "当前的动物名称：unicorn{" +
                "动物id=" + id +
                ", 动物名字'" + name + '\'' +
                ", 动物叫声'" + shout+'\'' +
                ", 动物颜色'" + color + '\'' +
                ", 动物腿数'" + legnum + '\'' +
                '}';
    }
    public void flyInTheskye(){
        System.out.println("注定毁灭的都将归于永恒");
    }
}
